#define _CRT_SECURE_NO_WARNINGS
#include "head.h"
void Text1()
{
	
	ListNode* ls = ListCreate();


	ListPushBack(ls, 1);
	ListPushBack(ls, 2);
	ListPushBack(ls, 3);
	ListPushBack(ls, 4);
	ListPushBack(ls, 5);
	ListPushBack(ls, 6);



	ListPrint(ls);
	ListPopBack(ls);
	ListPrint(ls);

	ListPushFront(ls, 666);
	ListPrint(ls);

	ListPopFront(ls);
	ListPrint(ls);

	ListNode* pos = ListFind(ls, 3);
	printf("%d\n", pos->data);

	ListInsert(pos, 114514);
	ListPrint(ls);
	ListErase(pos);
	ListNode* pos2 = ListFind(ls, 114514);

	ListErase(pos2);

	ListPrint(ls);




	ListDestory(ls);



	return 0;

}


int main()
{
	Text1();
	return 0;
}